package com.rg1906.service.impl;

import java.sql.SQLException;

import com.rg1906.dao.Impl.UpdateTeacherDaoImpl;

public class UpdateTeacherServiceImpl {
	UpdateTeacherDaoImpl dao=new UpdateTeacherDaoImpl();

	public int updateTeacher(String id, String teacherName, int gid, String phone, String sex, String age,
			String address) throws SQLException {
		return dao.updateTeacher(id,teacherName,gid,phone,sex,age,address);
		
	}

	public int updateGid(String gradeName) throws SQLException {
	return 	dao.updateGid(gradeName);
		
	}
}
